home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwkp9407.zip / QWK.TXT < prev    next >
Text File  |  1994-07-05  |  52KB  |  1,148 lines

  1.                      QWK Mail Packet File Layout
  2.                           by Patrick Y. Lee
  3.  
  4. Version 1.6 - December 19, 1992
  5.      Added off-line commands for QSO (door for TBBS), thanks to
  6.      message from Bob Hartman in the FidoNet Off-line echo.  All
  7.      8-bit characters have been replaced with either blanks or
  8.      equivalent 7-bit characters so I can send this file easily via
  9.      Internet email.  Line 9 of the CONTROL.DAT file seems to be
  10.      used by a few doors to indicate the NetMail conference.
  11. Version 1.5 - July 30, 1992
  12.      Added off-line commands for Cam-Mail door.  Fixed error in the
  13.      status flag section.  The descriptions for `*' and `+' are
  14.      incorrect.  Thanks to Bob Blaylock for bringing this up.
  15. Version 1.4 - July 18, 1992
  16.      Fixed a few minor mistakes in the documentation (thanks to
  17.      Cody Gibson).  Nothing really major.  Also completed the
  18.      Netmail section of the documentation.
  19. Version 1.3 - July 6, 1992
  20.      Added changes to the QWK format adopted by Qmail door.  Spe-
  21.      cifically line 10 of CONTROL.DAT file and bytes 126-127 of
  22.      MESSAGES.DAT file.  Please refer to the appropriate section
  23.      for the changes.
  24. Version 1.2 - May 31, 1992
  25.      Added a few items to the DOOR.ID file that is being supported
  26.      by Qmail DeLuxe2 version 1.25.
  27. Version 1.1 - March 15, 1992
  28.      Minor fixes here and there to make everything just right.
  29. Version 1.0 - February 23, 1992
  30.      First release.
  31.  
  32. This document is Copyright 1992 by Patrick Y. Lee.
  33.  
  34. The QWK-format is Copyright 1987 by Sparkware.
  35.  
  36. All program names mentioned in this document are either Copyright
  37. or Trademark of respective owners.
  38.  
  39. The author provides this file as-is without warranty of any kind,
  40. either expressed or implied.  You are using the information in this
  41. file at your own discretion.  The author assumes no responsibili-
  42. ties for damages, either physically or financially, from the use of
  43. this information.
  44.  
  45. This document may be freely distributed by any means (electronical-
  46. ly, paper, etc.), provided that it is distributed in its entirety. 
  47. Portions of this document may be reproduced without credit.
  48.  
  49. The latest version of this file can always be found on Aardvark BBS
  50. (New York, NY) at (212) 496-8324.  It can also be found in the Lu-
  51. natic Fringe BBS (Plano, TX) at (214) 422-2936 USR HST DS.  First
  52. time caller can download on both boards.  The file can also be sent
  53. via Internet email to anyone who asks.  Mail request to
  54. patlee@panix.com.
  55.  
  56.                     -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  57.  
  58.                           Table of Contents
  59.  
  60. 1.  Introduction
  61.     1.1.  Intent
  62.     1.2.  History
  63.     1.3.  Questions, corrections, etc.
  64. 2.  Conventions & overview
  65.     2.1.  The BBS ID
  66.     2.2.  Packet compression
  67.     2.3.  Packet transfer & protocols
  68.     2.4.  Limitations
  69. 3.  QWK files
  70.     3.1.  Naming convention
  71.     3.2.  Control file (CONTROL.DAT)
  72.     3.3.  Welcome file
  73.     3.4.  Goodbye file
  74.     3.5.  News file
  75.     3.6.  Qmail DeLuxe2 menu file
  76.     3.7.  New uploads listing (NEWFILES.DAT)
  77.     3.8.  Bulletin file(s) (BLT-x.y)
  78.     3.9.  Message file (MESSAGES.DAT)
  79.     3.10.  Index files (*.NDX)
  80.         3.10.1.  Conference indices
  81.         3.10.2.  Personal index (PERSONAL.NDX)
  82.     3.11.  Pointer file
  83.     3.12.  SESSION.TXT
  84. 4.  REP files
  85.     4.1.  Naming convention
  86.     4.2.  Message file (BBSID.MSG)
  87.     4.3.  Door control messages
  88.     4.3.1.  DOOR.ID file
  89.     4.3.2.  Qmail
  90.     4.3.3.  MarkMail
  91.     4.3.4.  KMail
  92.     4.3.5.  RoseMail
  93.     4.3.6.  Complete Mail Door
  94.     4.3.7.  The MainMail System
  95.     4.3.8.  BGQWK
  96.     4.3.9.  UltraBBS
  97.     4.3.10.  TriMail
  98.     4.3.11.  Cam-Mail
  99.     4.3.12.  QSO
  100.     4.4.  Turning off the echo flag
  101.     4.5.  Tag-lines
  102. 5.  Net mail
  103. A.  Credits & contributions
  104. B.  Sample Turbo Pascal and C code
  105. C.  Sample message
  106. D.  Sample index file
  107.  
  108.                     -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  109.  
  110. To search for a specific section, look for "[x.x]" using your edi-
  111. tor or viewer.  For example, to jump to the tag-lines portion of
  112. this file, search for "[4.5]" with your editor or text viewer.
  113.  
  114.                     -=-=-=-=-=-=-<>-=-=-=-=-=-=-
  115.  
  116. [1]  Introduction
  117.  
  118. [1.1]  Intent
  119.  
  120. This document is written to facilitate programmers who want to write
  121. QWK-format mail doors or readers.  It is intended to be a comprehen-
  122. sive reference covering all areas of QWK-format mail processing. 
  123. Detailed break down of each file is included, as are implementation
  124. information.  In addition, door and reader specific information may be
  125. included, when such information are available to me.
  126.  
  127. [1.2]  History
  128.  
  129. The QWK-format was invented by Mark "Sparky" Herring in 1987.  It was
  130. based on Clark Development Corporation's PCBoard version 12.0 message
  131. base format.  Off-line mail reading has become popular only in recent
  132. years.  Prior to summer of 1990, there were only two QWK-format off-
  133. line mail reader programs.  They were Qmail DeLuxe by Mark Herring and
  134. EZ-Reader by Eric Cockrell.  Similarly for the doors, there were only
  135. two -- Qmail by Mark Herring and MarkMail by Mark Turner.  They were
  136. both for PCBoard systems.
  137.  
  138. A lot has changed in both off-line reader and mail door markets since
  139. summer 1990.  Now, there are more than a dozen off-line mail readers
  140. for the PC.  Readers for the Macintosh, Amiga, and Atari exist as
  141. well.  There are over a half dozen doors for PCBoard, and QWK-format
  142. doors exist for virtually all of the popular BBS softwares.  All of
  143. these happened in less than two years!  More readers and doors are in
  144. development as I write this, keep up the excellent work.  In addition
  145. to doors, some BBS softwares has QWK-format mail facility built in.
  146.  
  147. Off-line mail reading is an integral part of BBS calling.  Conference
  148. traffic and selection on all networks have grown dramatically in re-
  149. cent years that on-line reading is a thing of the past.  Off-line mail
  150. reading offers an alternative to reading mail on-line -- It offers
  151. speed that cannot be achieved with on-line mail reading.
  152.  
  153. The reason why QWK-format readers and doors seem to have gained popu-
  154. larity is probably dued to its openness.  The format is readily avail-
  155. able to any programmer who wishes to write a program that utilize it. 
  156. Proprietary is a thing of the past, it does not work!  Openness is
  157. here to stay and QWK-format is a part of it.
  158.  
  159. [1.3]  Questions, corrections, etc.
  160.  
  161. Most of the message networks today have a conference/echo devoted to
  162. discussion of off-line readers and mail doors.  The ones I know are on
  163. FidoNet, ILink, Intelec, and RIME.  If you have questions after read-
  164. ing anything in here, feel free to drop by any of the above conference
  165. /echo and I am sure other QWK authors will try to help.
  166.  
  167. I can be reached at:
  168.  
  169. CompuServe: >INTERNET:patlee@panix.com
  170. FidoNet: Off-line echo
  171. ILink: Off-line conference
  172. Intelec: Off-line conference
  173. Internet: patlee@panix.com
  174. PlanoNet: Reviews conference
  175. RIME: ->RUNNINGB, Off-line, Common, Net Admin., Shareware, New Users,
  176. and Session Manager conferences
  177.  
  178. Any corrections, extensions, comments, and criticisms are welcomed. 
  179. Messages from Internet and RIME will probably be answered first.  But
  180. I do check mail on all other places at least once a week.
  181.  
  182. [2]  Conventions & overview
  183.  
  184. All offsets referenced in this document will be relative to 1.  I am
  185. not a computer, I start counting at one, not zero!
  186.  
  187. Words which are enclosed in quotes should be entered as-is.  The quo-
  188. tations are not part of the string unless noted.
  189.  
  190. You may have noticed I use the phrase "mail program" or "mail facili-
  191. ty" instead of mail doors.  This is because some BBS softwares offer
  192. the option of creating QWK-format mail packets right from the BBS. 
  193. With those, there is no need for an external mail door.
  194.  
  195. [2.1]  The BBS ID
  196.  
  197. The BBS ID (denoted as BBSID) is a 1-8 characters word that identifies
  198. a particular BBS.  This identifier should be obtained from line 5 of
  199. the CONTROL.DAT file (see section 3.2.1).
  200.  
  201. [2.2]  Packet compression
  202.  
  203. Most mail packets are compressed when created by the mail door in
  204. order t